package com.ruifight.web.service.impl;

import com.ruifight.web.dao.UserInfoMapper;
import com.ruifight.web.model.UserInfo;
import com.ruifight.web.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户Service实现类
 *
 * @author Liuhx
 * @since 2015年11月24日 下午4:16:33
 */
@Service
public class UserInfoServiceImpl implements UserInfoService{
    @Resource
    private UserInfoMapper userInfoMapper;

    @Override
    public int add(UserInfo userInfo) {
        return userInfoMapper.add(userInfo);
    }

    @Override
    public int edit(UserInfo userInfo) {
        return userInfoMapper.edit(userInfo);
    }

    @Override
    public UserInfo find(UserInfo userInfo) {
        return userInfoMapper.find(userInfo);
    }


}
